
/*

DEPENDENCIES:
-------------
Gimme.Style
-------------


IN THIS FILE:
-------------
ext.get_style
-------------

*/

(function()	
{
	var getRenderedStyle = Gimme.Style.get_rendered_style;
	var getOpacity = Gimme.Style.get_opacity;
	var getCamelizedStyle = Gimme.Style.get_camelized_style_name;
	Gimme.ext.get_style = function(style, n)
	{
		var elem = this[n || 0];
		if (elem)
		{
			return style === 'opacity' ? getOpacity(elem) : getRenderedStyle(elem, getCamelizedStyle(style));
		}
		return '';
	};
	//[AltSyntax]Gimme.ext.getStyle = Gimme.ext.get_style;
})();